﻿using Mes.Domain.BoundedContext.EntityBase;

namespace Mes.Domain.BoundedContext.Entities.WorkOrders
{
    public class JobStepGrp : NoIdEntityBase
    {
        public JobStepGrp() { }

        public JobStepGrp(string woId, string operId, int stepGrpId, string stepGrpDesc, int stepGrpSeq)
        {
            Wo_Id = woId;
            Oper_Id = operId;
            Step_Grp_Id = stepGrpId;
            Step_Grp_Desc = stepGrpDesc;
            Step_Grp_Seq = stepGrpSeq;
        }

        public string Wo_Id { get; set; } = string.Empty;

        public string Oper_Id { get; set; } = string.Empty;

        public int Seq_No { get; set; } = 0;

        public int Step_Grp_Id { get; set; } = 0;

        public string Step_Grp_Desc { get; set; } = string.Empty;

        public int Step_Grp_Seq { get; set; } = 0;

        public int Repeatability { get; set; } = 0;

        public string? Last_Edit_Comment { get; set; } = null;

        public string? Last_Edit_By { get; set; } = null;

        public DateTime Last_Edit_At { get; set; } = DateTime.Now;

        public int Row_Id { get; set; } = 0;
    }
}
